#include "mbcom.h"

/*****************************************************************************//*!
* @brief   adu crc and send .
*               
* @param   none
*
* @return  none
*
* @ Pass/ Fail criteria: none
*****************************************************************************/

void mbPackageSend(mbObjType * mbObj) {
    mbU16Type Data;
    Data.Val = usMBCRC16(mbObj->AduBuff, mbObj->SndSize);
    mbObj->AduBuff[mbObj->SndSize++] = Data.byte.LB;
    mbObj->AduBuff[mbObj->SndSize++] = Data.byte.HB;
    mbObj->SndSt = MB_TX_XMIT;
    mbObj->SndCnt = 0;
    mbObj->AduSend();
}